//
//  MYUINavigationController.m
//  家盟商城
//
//  Created by 李志权 on 2016/10/26.
//  Copyright © 2016年 李志权. All rights reserved.
//

#import "MYUINavigationController.h"

@interface MYUINavigationController ()

@end

@implementation MYUINavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBar.barTintColor = [UIColor whiteColor];
    [self.navigationController.navigationBar setTitleTextAttributes:  @{NSFontAttributeName:fontSizeTitleBold,  NSForegroundColorAttributeName:MAINBLUEGrayDark}];
    
    [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60)  forBarMetrics:UIBarMetricsDefault];
    
    [[UINavigationBar appearance]setTintColor:MAINBLUEGrayDark];
    // Do any additional setup after loading the view.
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    
    if (self.viewControllers.count>0) {
        
//        viewController.hidesBottomBarWhenPushed = YES;
        viewController.edgesForExtendedLayout = NO;
       
    }
    [super pushViewController:viewController animated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
